import request from '@/utils/request'

// 查询项目识别码列表
export function listIdentify(query) {
  return request({
    url: '/system/identify/list',
    method: 'get',
    params: query
  })
}

// 查询项目识别码详细
export function getIdentify(id) {
  return request({
    url: '/system/identify/' + id,
    method: 'get'
  })
}

// 新增项目识别码
export function addIdentify(data) {
  return request({
    url: '/system/identify',
    method: 'post',
    data: data
  })
}

// 修改项目识别码
export function updateIdentify(data) {
  return request({
    url: '/system/identify',
    method: 'put',
    data: data
  })
}

// 删除项目识别码
export function delIdentify(id) {
  return request({
    url: '/system/identify/' + id,
    method: 'delete'
  })
}

// 导出项目识别码
export function exportIdentify(query) {
  return request({
    url: '/system/identify/export',
    method: 'get',
    params: query
  })
}

// 状态修改
export function changeStatus(id, status) {
  const data = {
    id,
    status
  }
  return request({
    url: '/system/identify/changeStatus',
    method: 'put',
    data: data
  })
}

export function select(query) {
  return request({
    url: '/system/identify/select',
    method: 'get',
  })
}